
import request from "@/common/untils/request.js"
// 检索页面数据列表
export const getSearchList = (query) => {
  return request({
    url: "/data/api-v/es/esSearch",
    method: "post",
    data: query
  });
};

// 以图搜图
export const findPersonByPic = (query) => {
  return request({
    url: "/data/api-v/dbperson/searchByPhoto2",
    method: "post",
    data: query
  });
};

// 底库列表
export const getTagList = (query) => {
  return request({
    url: "/data/api-v/es/tagList",
    method: "post",
    data: query
  });
};

// 检索页面任务列表查询
export const getTaskList = (query) => {
  return request({
    url: "/data/api-v/task/aggregateTaskList",
    method: "get",
    params: query
  });
};

// 字典查询（布防等级）
export const getAlarmLevel = (query) => {
  return request({
    url: "/data/api-v/dictionary/findByType",
    method: "get",
    data: query
  });
};

// 
export const findPerson = (query) => {
  return request({
    url: "/data/api-v/es/queryEsCompareData",
    method: "post",
    data: query
  });
};
// 加入底库
export const addToBase = (query) => {
  return request({
    url: "/data/api-v/dbperson/joinDbTable",
    method: "post",
    data: query
  });
};

// 关注
export const collect = (query) => {
  return request({
    url: " /data/api-v/es/collect",
    method: "post",
    data: query
  });
};
